{ext->get_type_group type=$data.page.type assign='type_group'}
{ext->get_type_name type=$data.page.type assign='type_name'}
{ext->tree_get_fields assign="elements" id=$data.page.id}
{ext->tree_get_element_types id=$data.page.id assign='has_elements'}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="2" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="20"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
	<tr>
		<td height="2" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
<table cellpadding="0" cellspacing="0">
	<tr>
		<td height="36" width="1" style="padding:0px 10px 0px 5px"><img src="_tvs_system_core_/design/img/dicon_document_big.gif"></td>
		<td style="color:#CC0E00; font-weight:bold; padding-right:10px">{$data.page.name|truncate:"80"}</td>
		<td style="color:#000000">( {t t=$data.page.type} )</td>
		<td width="47" align="center"><span style="height:23px; background-color:#DBE1E5; width:1px"><img src="client/img/spacer.gif" class="spacer" alt="" /></span></td>
		{*if $data.admins.cur.mod[1] || (!$data.admins.cur.mod[1] && !$_var.vovka_mode)*}
		<td width="20"><a onClick="openCenteredOnOpenerWindow('index.php?admin=1&id={$smarty.get.id}&popup=2','element_new',400,275,1,0); return false" href="#"><img src="_tvs_system_core_/design/img/admin/_icon_page_properties.gif"></a></td>
		<td><a onClick="openCenteredOnOpenerWindow('index.php?admin=1&id={$smarty.get.id}&popup=2','element_new',400,275,1,0); return false" href="#">{t t='Redaguoti nuostatas'}</a></td>
		{*/if*}
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="2" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td height="20"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
{include file="admin/body/tabs.html"}	
{if $smarty.get.tpl_action=='show_metatags' && $_var.keywords == 1}
	{include file="admin/body/metatags.htm"}
{elseif $smarty.get.tpl_action=='show_childs'}
	{include file="admin/body/childlist.htm"}
{elseif $smarty.get.tpl_action=='edit_content' || !$smarty.get.tpl_action || $smarty.get.tpl_action=='show_elements' || $smarty.get.tpl_action=='show_comments' || $smarty.get.tpl_action=='edit_comments'}
	{include file="admin/body/content_editor.htm"}	
{/if}
{if $smarty.get.tpl_action=='aditionalelements'}
	{include file="admin/body/aditionalelements/placechooser.htm"}
{/if}
